<?php $this->pageTitle='Tài khoản - '.$model->username; ?>
<div class="title_mod">
	<a href="#" title="Tài khoản"><span class="mleft"><span class="mright">Tài khoản</span></span></a>
</div>
<div class="form">
	<div class="row">
		<label>Số thuê bao</label>
		<input type="text" value="<?php echo $model->username;?>" readonly="readonly" />
	</div>
	<div class="row">
		<label>Tài khoản</label>
		<input type="text" value="<?php echo number_format($model->amount,0,",",".").' Đồng';?>" readonly="readonly" />
	</div>
	<div class="row">
		<label>Đăng ký</label>
		<?php 
		$fdate = date_create($model->activedate);
		$fdate =  date_format($fdate,'d-m-Y');
		?>
		<input type="text" value="<?php echo $fdate;?>" readonly="readonly" />
	</div>
	<div class="row buttons">
		<?php echo CHtml::link('Nạp tiền',array('/package'),array('title'=>'Nạp tiền','class'=>'button-get')); ?>
		<?php echo CHtml::link('Thoát',array('/site/logout'),array('title'=>'Thoát','class'=>'button')); ?>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
	$('.form').css('min-height',($(window).height()-117-167)+'px');
	var canDetect = "onorientationchange" in window; 
	var orientationTimer = 0; 
	$(window).bind(canDetect ? "orientationchange" : "resize", function(evt) { 
	   clearTimeout(orientationTimer); 
	   orientationTimer = setTimeout(function() {
		   $('.form').css('min-height',($(window).height()-117-167)+'px');
	  }, 500); 
	});
});
</script>